package hxvid.events;
class ServerEvent implements IEvent
{
	public static var SOCKET_CONNECT = "socketConnect";
	public static var SOCKET_DISCONNECT = "socketDisconnect";
	public static var CLIENT_CONNECT = "clientConnect";
	public static var CLIENT_DISCONNECT = "clientDisconnect";
	
	public var type:String;
	public var target:Server;
	public var currentTarget:Server;
	public var data:Dynamic;//Socket or Client
	
	public function new(type:String, target:Server, data:Dynamic)
	{
		this.type = type;
		this.target = this.currentTarget = target;
		this.data = data;
	}
}